package com.tanhua.server.exception;

import com.tanhua.model.vo.ErrorResult;
import lombok.Data;

@Data
public class BusinessException extends RuntimeException{

    private ErrorResult errorResult;

    public BusinessException(String message) {
        super(message);
    }

    public BusinessException(String message, ErrorResult errorResult) {
        super(message);
        this.errorResult=errorResult;
    }
}
